﻿using System;
using UnityEngine;

// Token: 0x02000025 RID: 37
public class RbMoveToObj : MonoBehaviour
{
	// Token: 0x060000A7 RID: 167 RVA: 0x0000F5CA File Offset: 0x0000D7CA
	private void Awake()
	{
		this.rb = base.GetComponent<Rigidbody2D>();
		this.rb.isKinematic = true;
	}

	// Token: 0x060000A8 RID: 168 RVA: 0x0000F5E4 File Offset: 0x0000D7E4
	private void FixedUpdate()
	{
		this.rb.velocity = (this.TransformToMoveTo.position - base.transform.position) * this.movetoSpeed;
	}

	// Token: 0x04000183 RID: 387
	public Transform TransformToMoveTo;

	// Token: 0x04000184 RID: 388
	public float movetoSpeed = 1f;

	// Token: 0x04000185 RID: 389
	private Rigidbody2D rb;
}
